package com.sanxiau.dormitory.yang.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class Leave {
    private int id;
    private Date date;
    private Date start_date;
    private Date end_date;
    private Date approval_date;
    private Date remove_date;
    private String stu_id;
    private String stu_name;
    private String stu_tel;
    private String hou_id;
    private String dor_id;
    private String stu_study;
    private String stu_class;
    private String stu_cname;
    private String cause;
    private String approver;

    public Leave() {
    }

    public Leave(int id, Date date, Date start_date, Date end_date, Date approval_date, Date remove_date, String stu_id, String stu_name, String stu_tel, String hou_id, String dor_id, String stu_study, String stu_class,  String stu_cname, String cause, String approver) {
        this.id = id;
        this.date = date;
        this.start_date = start_date;
        this.end_date = end_date;
        this.approval_date = approval_date;
        this.remove_date = remove_date;
        this.stu_id = stu_id;
        this.stu_name = stu_name;
        this.stu_tel = stu_tel;
        this.hou_id = hou_id;
        this.dor_id = dor_id;
        this.stu_study = stu_study;
        this.stu_class = stu_class;
        this.stu_cname = stu_cname;
        this.cause = cause;
        this.approver = approver;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    public Date getDate() {
        return date;
    }
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    public void setDate(Date date) {
        this.date = date;
    }
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    public Date getStart_date() {
        return start_date;
    }
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    public void setStart_date(Date start_date) {
        this.start_date = start_date;
    }
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    public Date getEnd_date() {
        return end_date;
    }
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    public void setEnd_date(Date end_date) {
        this.end_date = end_date;
    }
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    public Date getApproval_date() {
        return approval_date;
    }
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    public void setApproval_date(Date approval_date) {
        this.approval_date = approval_date;
    }
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    public Date getRemove_date() {
        return remove_date;
    }
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    public void setRemove_date(Date remove_date) {
        this.remove_date = remove_date;
    }

    public String getStu_id() {
        return stu_id;
    }

    public void setStu_id(String stu_id) {
        this.stu_id = stu_id;
    }

    public String getStu_name() {
        return stu_name;
    }

    public void setStu_name(String stu_name) {
        this.stu_name = stu_name;
    }

    public String getStu_tel() {
        return stu_tel;
    }

    public void setStu_tel(String stu_tel) {
        this.stu_tel = stu_tel;
    }

    public String getHou_id() {
        return hou_id;
    }

    public void setHou_id(String hou_id) {
        this.hou_id = hou_id;
    }

    public String getDor_id() {
        return dor_id;
    }

    public void setDor_id(String dor_id) {
        this.dor_id = dor_id;
    }

    public String getStu_study() {
        return stu_study;
    }

    public void setStu_study(String stu_study) {
        this.stu_study = stu_study;
    }

    public String getStu_class() {
        return stu_class;
    }

    public void setStu_class(String stu_class) {
        this.stu_class = stu_class;
    }


    public String getStu_cname() {
        return stu_cname;
    }

    public void setStu_cname(String stu_cname) {
        this.stu_cname = stu_cname;
    }

    public String getCause() {
        return cause;
    }

    public void setCause(String cause) {
        this.cause = cause;
    }

    public String getApprover() {
        return approver;
    }

    public void setApprover(String approver) {
        this.approver = approver;
    }

    @Override
    public String toString() {
        return "Leave{" +
                "id=" + id +
                ", date=" + date +
                ", start_date=" + start_date +
                ", end_date=" + end_date +
                ", approval_date=" + approval_date +
                ", remove_date=" + remove_date +
                ", stu_id='" + stu_id + '\'' +
                ", stu_name='" + stu_name + '\'' +
                ", stu_tel='" + stu_tel + '\'' +
                ", hou_id='" + hou_id + '\'' +
                ", dor_id='" + dor_id + '\'' +
                ", stu_study='" + stu_study + '\'' +
                ", stu_class='" + stu_class + '\'' +
                ", stu_cname='" + stu_cname + '\'' +
                ", cause='" + cause + '\'' +
                ", approver='" + approver + '\'' +
                '}';
    }
}
